package com.woniuxy.service.impl;

import com.woniuxy.mapper.AppointmentMapper;
import com.woniuxy.vo.AppointmentVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class AppointmentServiceImpl implements AppointmentService {
    @Resource
    private AppointmentMapper appointmentMapper;

    @Override
    public List<AppointmentVO> selectAppointmentByExample(Map<String, Object> map) throws Exception {
        return appointmentMapper.selectAppoinmentByExample(map);
    }

    @Override
    public int countAppointment(Map<String, Object> map) throws Exception {
        return appointmentMapper.countAppointmentByExample(map);
    }
}
